/**
 * New node file
 */
var child_process = require('child_process');
/** 
var spawn = require('child_process').spawn;
var child = spawn('scp', ['changgong@10.232.127.179:/home/admin/malldetail/logs/detail.log', '/home/looop/scpDetail.log']);
child.stdout.on('data', function(data){
    console.log('stdout: ' + data);
});*/
child_process.exec('scp changgong@10.232.127.179:/home/admin/malldetail/logs/detail.log /home/looop/scpDetail.log', function(err, stdout, stderr){
	console.log('stdout' + stdout);
	console.log('stderr' + stderr);
	if(err != null){
		console.log(err);
	}
}).on('messsage', function(msg){
	console.log('************msg:' + msg);
});